# 导包
from sklearn.preprocessing import MinMaxScaler,StandardScaler

# 数据
data = [
    [90, 2, 10, 40],
    [60, 4, 15, 45],
    [75, 3, 13, 46]
]
# 特征工程

# 1.实例化
# transform = MinMaxScaler()
transform = StandardScaler()

# 2.预处理
data =transform.fit_transform(data)
print(data)
# transform.fit(data)
data1 =transform.transform([[80,5,12,42]])
print(data1)
print(transform.mean_)
print(transform.var_)
